package model;


public class Expense extends Transaction {
	private static final long serialVersionUID = -2299095204214475157L;
	
	private Integer category;
	
	public Expense(double amount, int account, String venue, int category, int year, int month, int day) {
		super(amount, account, venue, year, month, day);

		this.category = category;
	}

	
	public boolean matchesCategory(Integer rqCategory) {
		if(rqCategory == null || rqCategory == -1) return true;
		else return (rqCategory.equals(category));		
	}
	
	public Integer getCategory() {
		return category;
	}
}
